import request from '@/utils/request'

// 当前白班列表
export function dayShift(query) {
  return request({
    url: '/api/machine/dayShift',
    method: 'get',
    params: query
  })
}
// 当前夜班列表
export function nightShift(query) {
  return request({
    url: '/api/machine/nightShift',
    method: 'get',
    params: query
  })
}
// 当前夜班列表
export function getRegisterUser(query) {
  return request({
    url: '/api/machine/getRegisterUser',
    method: 'get',
     params: query
  })
}


// 应急刷脸的人员信息
export function getContingencyUser(query) {
  return request({
    url: '/api/machine/getContingencyUser',
    method: 'get',
     params: query
  })
}

// 紧急撤号列表
export function machinelist(data) {
  return request({
    url: '/api/machine/list',
    method: 'post',
    data
  })
}
// 应急撤号
export function ContingencyBtnEndClick(data) {
  return request({
    url: '/api/machine/ContingencyBtnEndClick',
    method: 'post',
    data
  })
}

// 作业开始刷脸
export function machinestart(query) {
  return request({
    url: '/api/machine/start',
    method: 'get',
     params: query
  })
} 

// 开始作业
export function startWork(data) {
  return request({
    url: '/api/machine/startWork',
    method: 'post',
    data
  })
}

// 作业结束刷脸
export function operationType3(params) {
  return request({
    url: '/api/machine/operationType3',
    method: 'get',
    params
  })
}

// 小作业结束作业
export function btnEndClick1(data) {
  return request({
    url: '/api/machine/btnEndClick',
    method: 'post',
    data
  })
}


// 作业查询刷脸
export function queryWork(params) {
  return request({
    url: '/api/machine/queryWork',
    method: 'get',
    params
  })
}

// 单项整体结束刷脸
export function singleFinish(params) {
  return request({
    url: '/api/machine/singleFinish',
    method: 'get',
    params
  })
}
// 作业结束
export function machineend(data) {
  return request({
    url: '/api/machine/end',
    method: 'post',
    data
  })
}



// 单项整体结束刷脸
export function entiretyFinish(params) {
  return request({
    url: '/api/machine/entiretyFinish',
    method: 'get',
    params
  })
}
// 作业结束
export function carloadBtnEndClick(data) {
  return request({
    url: '/api/machine/carloadBtnEndClick',
    method: 'post',
    data
  })
}


// 开始前检验
export function picStartClick(params) {
  return request({
    url: '/api/machine/picStartClick',
    method: 'get',
    params
  })
}


// 作业类型检验
export function typeCheckout(params) {
  return request({
    url: '/api/machine/typeCheckout',
    method: 'get',
    params
  })
}



// 根据车辆id，跳转对应数据
export function machineplanId(planId) {
  return request({
    url: '/api/machine/' + planId,
    method: 'get'
  })
}